//
// Created by jsjxsy on 2022/9/13.
// 交集
//
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class myPrint {
 public:
  void operator()(int val) {
    cout << val << " ";
  }
};

void test01() {
  vector<int> v1;
  v1.resize(10);
  fill(v1.begin(), v1.end(), 1);
  cout << "v1:" << endl;
  for_each(v1.begin(), v1.end(), myPrint());
  cout << endl;
}

int main() {
  test01();
  return 0;
}
